package com.example.demo.repository;


import com.example.demo.entity.Feedback;
import io.lettuce.core.dynamic.annotation.Param;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface FeedbackRepository extends JpaRepository<Feedback,Integer> {
    @Query(value = "select * from feedback where activity_id = :activity_id ",nativeQuery = true)
    List<Feedback> findAllByActivity_id(@Param("activity_id") Integer activity_id);
}
